<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户角色页</title>
</head>
<%
	String path = request.getContextPath();
	request.setAttribute("path", request.getContextPath());
	request.setAttribute("jsPath", path + "/js");
	request.setAttribute("cssPath", path + "/css");
%>
<%
	if (request.getAttribute("list") == null) {
		response.sendRedirect(request.getContextPath()
				+ "/userRole/get");
	}
%>
 <link href="${cssPath}/userRole.css" rel="stylesheet" type="text/css">
<style type="text/css" >
	table{width:100%;}
</style>
<script type="text/javascript" src="${jsPath}/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${jsPath}/userRole.js"></script>
<script type="text/javascript" src="${jsPath}/global.js"></script>
<script type="text/javascript">
	
</script>
<body>
<c:if test="${not empty userRoleVo.msg}">
    <p style="display: none" id="msg">${userRoleVo.msg}</p>
</c:if>
<form action="${path}/userRole/get" method="get" id="searchForm">
    <p>
        用户名(支持模糊查询) <input type="text" name="chnName" value="" id="chnName"/>
        <input type="hidden" id="pageIndex" name="pageIndex"
               value="${userRoleVo.pageIndex}"/> <input type="button" value="查找"
                                                        onclick="search()"/>
    </p>
</form>
<section class="link-braces">
    <table border="1" style="table-layout: fixed" width="780px">
        <thead>
        <tr>
            <th width="5%"><input type="checkbox" id="checkall">全选</th>
            <th width="10%">用户角色ID</th>
            <th width="15%">用户名称</th>
            <th width="15%">角色名称</th>
            <th width="20%">创建时间</th>
            <th width="20%">联系方式</th>
            <th width="20%">操作</th>
        </tr>
        </thead>
        <tbody id="tbody">
        </tbody>
</section>
</table>
<section class="link-braces">
	<a href="javaScript:void(0)" id='shang'>上一页</a>, 
	<a href="javascript:void(0)" id='xia'>下一页</a> 
	--第<input id="myPageIndex" size="1" value="${userRoleVo.pageIndex}"/>页,<span id="span">共0页</span>-- 
	<a href="javaScript:void(0)" onclick="goPage()">跳转</a><br/>
	<a href="javascript:void(0)" id="new">添加新角色</a><br/>
    <input type="button" onclick="chk()" value="多删" id='btn'/>
</section>
</body>
</html>